package com.sparrow.example_message.base.resp;

import com.baidu.bjf.remoting.protobuf.annotation.Package;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.sparrow.example_message.PacketId;
import com.sparrow.socket.anno.Packet;

import java.util.Map;

@Package("com.sparrow.example_message.proto")
@ProtobufClass(description = "推送经验更新")
@Packet(msgId = PacketId.Base.RESP_EXP_UPDATE)
public class RespExpUpdatePacket {
    @Protobuf(description = "玩家等级")
    private int level;
    @Protobuf(description = "玩家经验")
    private int exp;

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getExp() {
        return exp;
    }

    public void setExp(int exp) {
        this.exp = exp;
    }
}
